import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== component
class Index extends React.Component{
	state = {
		data: [],
		formData:[
			{ label: '重命名为',		name: 'folder_name',		full:true,	required:true }
		],
	}
	submit = {}
	open = ({title,key})=> {
		this.submit.folder_id = key
		this.formRef.setValue({file_name:title})
		this.modal.open({formRef: this.formRef})
	}
	
	render(){
		return FormModal.call(this, {title:'重命名', labelWidth:'s5', width:600, api:'doc-file-folder/rename',
			onRefresh:()=> window.refreshFolder()
		} )
	}
}

export default Index